package org.jackysoft.service;

import java.util.Collection;

import org.jackysoft.data.ServiceProvider;
import org.jackysoft.entity.SecurityRole;
import org.springframework.dao.DataAccessException;

public interface SecurityRoleService extends ServiceProvider<SecurityRole> {

	Collection<SecurityRole> findByUser(String user) throws DataAccessException;
	
	Collection<SecurityRole> findEnabledByUser(String user) throws DataAccessException;

	Collection<SecurityRole> getsByUrl(String url) throws DataAccessException;	

	void enabled(String username);

	int[] appendUsers(String role, Collection<String> users)throws DataAccessException;

	boolean hasRole(String user,String role);

	void notifyDone(String id);
}
